package net.app.zoneland.platform.web.exception;

import lombok.Getter;
import net.app.zoneland.common.core.vo.IResultCode;

/**
 * @Description
 * @Author LENOVO
 * @CreateTime 2020/12/20 12:29
 * @Version: 1.0
 */
@Getter
public class BizException extends RuntimeException {

    public IResultCode resultCode;

    public BizException(IResultCode errorCode) {
        super(errorCode.getMsg());
        this.resultCode = errorCode;
    }

    public BizException(String message){
        super(message);
    }

    public BizException(String message, Throwable cause){
        super(message, cause);
    }

    public BizException(Throwable cause){
        super(cause);
    }
}

